<template>
  <div>
    <div class="editor_title">
      <div class="title" :style="textcolor">{{ title }}</div>
      <div class="replace cursor" :style="bgc" @click="gotoAll()">
        <!-- <span class="el-icon-refresh" :style="btntext" v-show="!isShow"></span -->
        <span :style="btntext">{{ replace }}</span>
        <span v-show="isShow" :style="btntext" class="el-icon-arrow-right"></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  // title 内容   bgc按钮被景色  textcolor 标题颜色 replace按钮内容
  props: ["title", "bgc", "textcolor", "replace", "btntext", "isShow",'hos'],
  data() {
    return {};
  },
  methods:{
    gotoAll(){
      if(this.hos){
        console.log(1);
        this.$router.push('/rankings')
        return
      }
      this.$router.push('/browse')
    }
  }
};
</script>
 
<style lang = "less" scoped>
.editor_title {
  width: 1160px;
  height: 51px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  /* color: #ffffff; */
  font-weight: 500;
  display: flex;
  .title {
    font-size: 25px;
    line-height: 42px;
  }
  .replace {
    width: 91px;
    height: 35px;
    /* background-color: rgba(255, 255, 255, 0.1); */
    border-radius: 26px;
    font-size: 13px;
    line-height: 35px;
    text-align: center;
  }
  .el-icon-arrow-right{
    margin-left: 10px;
  }
}
</style>